<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <input type="button" onclick="sayHello();" value="Say hello">
    <script type="text/javascript">
        var worker = new Worker('bigLoop.js');
        worker.onmessage = function(event) {
            console.log('completed: ' + event.data);
        }

        function sayHello() {
            console.log('hello sir...');
        }
    </script>
</body>
</html>
